package com.interesting.examsystem.common.config.handlerInterceptor;

import com.interesting.examsystem.user.model.User;
import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: WebHandlerInterceptor
 * @Author: ZhengXinyi
 * @Description: Web访问拦截处理
 * @Date: 2021/7/24 19:36
 * @Version: 1.0
 */
@Component
public class WebRequestHandlerInterceptor implements WebRequestInterceptor {

    /**
     * 在请求处理之前进行调用（Controller方法调用之前）
     */
    @Override
    public void preHandle(WebRequest webRequest) throws Exception {
    }

    @Override
    public void postHandle(WebRequest webRequest, ModelMap modelMap) throws Exception {
    }

    @Override
    public void afterCompletion(WebRequest webRequest, Exception e) throws Exception {
    }
}
